<?php echo open_form(); ?> 

	<fieldset>
		<legend>Basic Information</legend>
		<p><label for="login">Login</label> <input type="text" name="login" id="login" value="<?php echo set_value('login', $user->login);?>" /></p>
		<div class="form_error"><?php echo form_error('login'); ?></div>

		<p><label for="email">Email</label> <input type="text" name="email" id="email" value="<?php echo set_value('email', $user->email);?>" /></p>
		<div class="form_error"><?php echo form_error('email'); ?></div>
	</fieldset>

	<fieldset>
		<legend>Password</legend>
		<p><label>Current Password</label> <strong>*****************</strong></p>
		<p><label for="pass_1">Password</label> <input type="password" name="pass_1" id="pass_1" value="<?php echo set_value('pass_1');?>" /></p>
		<p><label for="pass_2">Confirm</label> <input type="password" name="pass_2" id="pass_2"  value="<?php echo set_value('pass_2');?>" /></p>
		<div class="form_error"><?php echo form_error('pass_1'); ?></div>
		<div class="form_error"><?php echo form_error('pass_2'); ?></div>
	</fieldset>

	<fieldset>
		<legend>Real Name</legend>
		<p><label for="first_name">First Name</label> <input type="text" name="first_name" id="first_name" value="<?php echo set_value('first_name', $user->first_name);?>" /></p>
		<div class="form_error"><?php echo form_error('first_name'); ?></div>

		<p><label for="last_name">Last Name</label> <input type="text" name="last_name" id="last_name" value="<?php echo set_value('last_name', $user->last_name);?>" /></p>
		<div class="form_error"><?php echo form_error('last_name'); ?></div>
	</fieldset>

	<fieldset>
		<legend>Other Info</legend>
		<p><label for="role">Role</label> <?php echo form_dropdown('role', $roles, set_value('role', $user->users_roles_id)); ?></p>
		<div class="form_error"><?php echo form_error('role'); ?></div>

		<p><label for="prefer_privacy">Prefer Privacy?</label> <input type="checkbox" name="prefer_privacy" id="prefer_privacy" /></p>
		<div class="form_error"><?php echo form_error('prefer_privacy'); ?></div>
</fieldset>

	<fieldset class="form_submit_area">
		<legend>Submit</legend>
		<button type="submit">Submit &raquo;</button>
	</fieldset>
</form>